//
//  XMContentViewController.m
//  XMKit
//
//  Created by Ce Liu on 2018/5/29.
//  Copyright © 2018年 ChenXiaoMing. All rights reserved.
//

#import "XMContentViewController.h"

@interface XMContentViewController ()
{
    UILabel *titleLabel;
}

@end

@implementation XMContentViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor randomColor];
}

- (void)setTitleStr:(NSString *)titleStr {
    _titleStr = titleStr;
    UILabel *label = [[UILabel alloc]initWithFrame:CGRectMake(100, 100, 100, 40)];
    label.center = self.view.center;
    label.textColor = [UIColor whiteColor];
    [self.view addSubview:label];
    label.text = titleStr;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
